import Rrequest from '@/util/Rrequest'

// 课程列表
export async function clublist(data) {
	return Rrequest({
		url: '/boot/course/getCourseList',
		method: 'post',
		data: data
	})
}
// 课程详情
export async function mainlessons(params) {
	return Rrequest({
		url: '/boot/course/getCourseDetails/' + params,
		method: 'get',
		// params:params,
	})
}

//最近账单信息
export async function selectcurrent() {
	return Rrequest({
		url: '/boot/bankCard/selectCurrent',
		method: 'get',
	})
}

// 查询所有银行
export async function selectbankcard() {
	return Rrequest({
		url: '/boot/bankIcon/selectBankIcon',
		method: 'get',
	})
}

// 添加银行
export async function insertbankcard(data) {
	return Rrequest({
		url: '/boot/bankCard/insertBankCard',
		method: 'post',
		data: data
	})
}

// 获取账单列表
export async function selectcard() {
	return Rrequest({
		url: '/boot/bankCard/selectBankCard',
		method: 'get',
	})
}

// 删除银行卡
export async function deletecard(id) {
	return Rrequest({
		url: '/boot/bankCard/deletedBankCard/' + id,
		method: 'DELETE',
	})
}

// 生成二维码
export async function qr() {
	return Rrequest({
		url: '/invitation/code',
		method: 'get',
	})
}

// 生成二维码
export async function bootcoursegetCatalogue() {
	return Rrequest({
		url: '/boot/course/getCatalogue',
		method: 'get',
	})
}
